how to convert polynomial in factorial notation